package com.lening.community.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.community.dto.BuildingDto;
import com.lening.community.mapper.BuildingMapper;
import com.lening.community.pojo.Building;
import com.lening.community.service.BuildingService;
import com.lening.community.vo.BuildingVo;
import com.lening.community.vo.TableVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 17:05
 */
@Service
public class BuildingServiceImpl extends BaseServiceImpl<BuildingMapper, Building, BuildingDto> implements BuildingService {


    @Override
    public Page<Building> page(BuildingDto buildingDto) {
        return this.baseMapper.page(buildingDto);
    }

    @Override
    public List<Building> getCommunityId(Long communityId) {
        return this.baseMapper.getCommunityId(communityId);
    }

    @Override
    public List<Building> getBuildUid(Long BuildUid) {
        return this.baseMapper.getBuildUid(BuildUid);
    }

    @Override
    public List<TableVo> getAllBui() {
        return this.baseMapper.getAllBui();
    }

    @Override
    public int getCount() {
        return this.baseMapper.getCount();
    }

    @Override
    public Building getById(Long bid) {
        return this.baseMapper.getById(bid);
    }
}
